<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>产品销售明细</title>
<style type="text/css">
h3{background:#ccc;padding-left:12px;}
.tab_b{border-left:1px solid #8CCD8C;border-top:1px solid #8CCD8C;border-collapse: collapse;font-size:14px;text-align:left}
.tab_b td,.tab_b th{border-bottom:1px solid #8CCD8C;border-right:1px solid #8CCD8C;padding-left:10px;line-height:21px;}
.tab_b th{text-align:center;}
</style>
</head>
<body>
<div class="wrap_width">
<h3 align="center">产品销售明细</h3>
<table class="tab_b" align="center">
<thead>
<tr>
<th>订单ID</th>
<th>发货日期</th>
<th>客户ID</th>
<th width="20%">客户</th>
<th>业务员ID</th>
<th>业务员</th>
<th>产品ID</th>
<th>产品</th>
<th>单位</th>
<th>数量</th>
<th>单价</th>
<th>金额</th>
<th>税金</th>
<th>提留</th>
<th>运费</th>
<th>利润</th>
</tr>
</thead>
<c:if test="${!empty list}">
<c:forEach items="${list}" var="op">
<tr>
<td>${op["orderid"]}</td>
<td>${op["shipmentDay"]}</td>
<td>${op["customerid"]}</td>
<td>${op["cname"]}</td>
<td>${op["salesmanid"]}</td>
<td>${op["salesman"]}</td>
<td>${op["productid"]}</td>
<td>${op["pname"]}</td>
<td>${op["unit"]}</td>
<td>${op["num"]}</td>
<td>${op["opprice"]}</td>
<td>${op["totalPrice"]}</td>
<td>${op["tax"]}</td>
<td>${op["payment"]}</td>
<td>${op["freight"]}</td>
<td>${op["margin"]}</td>
</tr>
</c:forEach>
</c:if>
</table>
</div>
</body>
</html>
